/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ControlEscolar.Validations;

import com.ControlEscolar.Beans.Curriculum;
import com.ControlEscolar.DAOs.CurriculumDAO;
import com.ControlEscolar.DAOs.DAOException;


/**
 *
 * @author Rodna Marrufo
 */
public class ValidationsCurriculum extends BasicValidation{
    CurriculumDAO curriculumDAO=new CurriculumDAO();

    public boolean isExistCurriculum(String curriculumName) throws DAOException{
        Curriculum searchCurriculum= curriculumDAO.queryByName(curriculumName);
        return isFound(searchCurriculum);
    }

}
